CC = c++

CFLAGS = -Wall -g

SOURCES = \
AbstractTrack.cpp \
AdaptationData.cpp \
Aircraft.cpp \
AirportAirwayConnector.cpp \
Airport.cpp \
AirspaceBaseVolume.cpp \
AirspaceVolume.cpp \
Airway.cpp \
Application.cpp \
Configuration.cpp \
Fix.cpp \
RoutePoint.cpp \
Track21.cpp \
Track48.cpp \
Track62.cpp \
Track147.cpp

PCH = stdafx.h.gch

OBJECTS = $(SOURCES:.cpp=.o)

OUTPUT = Shared.a

all : $(PCH) $(SOURCES) $(OUTPUT)

$(PCH) : stdafx.h
	$(CC) -c stdafx.h $(CFLAGS)

.cpp.o :
	$(CC) -c $< $(CFLAGS) -o $@

$(OUTPUT) : $(OBJECTS)
	ar -r $(OUTPUT) $^
	cp $(OUTPUT) ../lib

.PHONY : clean

clean :
	rm -rf *.o *.gch $(OUTPUT)
